<?php
/**
 * commmon interface for persistent storage
 * @author Fernando Palomo Garcia  fernando@kernelius.com
 * @version 0.1
 * @license Apache License 2.0
 */
interface Kernelius_Cache_Persistent{
    

    /**
     * save key to persistent storage
     * @param string $key
     * @param string $value
     * @param int $timeout
     */
    public function set($key, $value, $timeout=0);


    /**
     * get key from persistent
     * @param string $key
     */
    public function get($key);


    /**
     * delete key from persistent storage
     * @param string $key
     */
    public function delete($key);


    /**
     * refresh key timeout
     * @param string $key
     */
    public function touch($key);

}